{% load i18n %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}">
	<head>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
		<title>GBuy {% block title %}{% endblock %}</title>
		<link type="text/css" rel="stylesheet" href="/css/common.css">
			{% block style %}{% endblock %} {% block extrahead %}{% endblock %}
		<script type="text/javascript" src="/js/common.js"></script>
	</head>
	<body id="{% block bodyid %}page{% endblock %}">
		
		<div id="container">
			<div id="status">
				<font style="float:right">{% if user.is_authenticated %} {% trans "Welcome," %} {{ user.username }}! <a
					href="/logout/">{% trans "Logout" %}</a> {% else %} {% trans "Welcome !" %} 
					<a href="/login/">{% trans "Login" %}</a>. {% endif %} </font>
				<!-- <a href="javascript:setLang('zh')">{% trans "Chinese" %}</a>
				<a href="javascript:setLang('en')">{% trans "English" %}</a> -->
			</div>
			<font id="logo">
				<img src="/images/logo.jpg" border="0" />
			</font>
			<div class="webbanner">
				<div class="mainContent">
					<ul>
						<li class="short">
							<a href="/">{% trans "Banner Index" %}</a>
						</li>
						<li class="long">
							<a href="/user/">
							{% if user.is_authenticated %}{{ user.username }}{% trans "whose_word" %} {% else %}{% trans "mine_word" %}{% endif %}							
							{% trans "Banner Web Site Name" %}</a>
						</li>
						<li class="short">
							<a href="/product/">{% trans "Banner Product" %}</a>
						</li>
						
				</div>
			</div>
			<div id="functions">
				{% block functions %}{% endblock %}
			</div>
			<div id="content">
				{% block content %}{% endblock %}
			</div>
			<div id="footer">
				{% block footer %}{% endblock %} <br/>
				&copy;2009 EricYang  
				<a href="#">{% trans "Home page" %}</a> | 
				<a href="#">{% trans "About Us" %}</a> | 
				<a href="#">{% trans "Services&Support" %}</a>  | 
				<a href="#">{% trans "Contact us" %}</a>
			</div>
		</div>
	</body>
</html>
